<body class="inside-header inside-aside is-dialog">
<div id="main" role="main">
    <div class="tab-content tab-addtabs">
        <div id="content">
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                    <section class="content-header hide">
                        <h1>
                            控制台 <small>Control panel</small>
                        </h1>
                    </section>
                    <div class="content">
                        <form id="edit-form" class="form-horizontal form-ajax" role="form" method="POST" data-before-submit="refreshrules" action="">
                            <input type="hidden" name="row[menu_ids]" value="">
                            <input type="hidden" name="row[cate_ids]" value="">
                            <input type="hidden" id="id" value="<?=$row['id']?>">
                            <div class="form-group">
                                <label for="username" class="control-label col-xs-12 col-sm-2">名称:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input type="text" class="form-control" id="name" name="row[name]" value="<?=$row['name']?>" data-rule="required" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="menu_ids" class="control-label col-xs-12 col-sm-2">后台权限:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <span class="text-muted"><input type="checkbox" name="" id="checkall" /> <label for="checkall"><small>选中全部</small></label></span>
                                    <span class="text-muted"><input type="checkbox" name="" id="expandall" /> <label for="expandall"><small>展开全部</small></label></span>

                                    <div id="treeview"></div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="cate_ids" class="control-label col-xs-12 col-sm-2">栏目权限:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <span class="text-muted"><input type="checkbox" name="" id="checkall1" /> <label for="checkall1"><small>选中全部</small></label></span>
                                    <span class="text-muted"><input type="checkbox" name="" id="expandall1" /> <label for="expandall1"><small>展开全部</small></label></span>

                                    <div id="treeview1"></div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="c-status" class="control-label col-xs-12 col-sm-2">状态:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <label for="row[status]-normal">
                                        <input id="row[status]-normal" name="row[status]" type="radio" value="1" <?php if(!isset($row['status']) || $row['status'] == 1):?>checked<?php endif;?>> 正常
                                    </label>
                                    <label for="row[status]-hidden">
                                        <input id="row[status]-hidden" name="row[status]" type="radio" value="0" <?php if(isset($row['status']) && $row['status'] == 0):?>checked<?php endif;?>> 禁用
                                    </label>
                                </div>
                            </div>

                            <div class="form-group hidden layer-footer">
                                <label class="control-label col-xs-12 col-sm-2 col-xs-2"></label>
                                <div class="col-xs-12 col-sm-8">
                                    <button type="submit" class="btn btn-success btn-embossed disabled">确定</button>
                                    <button type="reset" class="btn btn-default btn-embossed">重置</button>
                                </div>
                            </div>
                        </form>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>